﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GISCore.Geometry
{
    [Serializable]
    public class LinkedPoint
    {
        Point p;
        PostPolygon head;
        LinkedPoint pre;
        LinkedPoint next;

        public LinkedPoint(Point p)
        {
            this.p = p;
        }

        public Point getPoint()
        {
            return p;
        }
        public void setPoint(Point p)
        {
            this.p = p;
        }
        public PostPolygon getPostPolygon()
        {
            return this.head;
        }
        public void setPostPolygon(PostPolygon head)
        {
            this.head = head;
        }
        public LinkedPoint getPre()
        {
            return pre;
        }
        public void setPre(LinkedPoint pre)
        {
            this.pre = pre;
        }
        public LinkedPoint getNext()
        {
            return next;
        }
        public void setNext(LinkedPoint next)
        {
            this.next = next;
        }
        public override string ToString()
        {
            return p.ToString();
        }
    }
}
